<?php

$site_global_config = array(
		'SITE'           => 'itrial',
    'SITE_NAME'      => 'iTrial',
		 
    'ROOT'           => ROOT_PATH.'/',
    'WWW'            => ROOT_PATH.'/www/',
     'VIEW'            => ROOT_PATH.'/app/View/',
    'URL'            => 'http://test.itrial.hk/',
		'LOG'            => LOG.'/',
    'DATA'           => ROOT_PATH.'/data/',
		'charset'        => 'utf8',  //UTF-8
		
		'CGI_URL'        => 'http://test.itrial.hk/',
	  'URL'            => 'http://test.itrial.hk/',


    'TMPL_USE_MEMCACHE' => 0,
    'TMPL_CACHE_PATH'   => CACHE_PATH.'/tmpl/',
    'TMPL'              => CACHE_PATH.'/tmpl/',
    'TMPL_MEMCACHE'     => array('192.168.110.34:11311'),

    
    'SESSION_NAME'    	=> 'IMORE_TRIAL',
    #'SESSION_TYPE'    	=> '', 			# default file
    #'SESSION_TYPE'		=> 'MYSQL', 	# Mysql, use SessionHandler.Mysql.class.php
    'SESSION_TYPE'     => 'MEMCACHE', 	# Memcache as session
    'SESSION_PATH'     	=> '', 			#CACHE_PATH.'/session/', # for file,
    'SESSION_MEMCACHE' 	=> array('192.168.110.34:11311'),     # for memcache
    #'SESSION_MYSQL'    	=> array('192.168.110.34', 'imore', 'www-34', 'mini@)!)server', 0),
	'GEARMAN_SERVERS'  	=> '127.0.0.1:4731',
	
	#'DATABASE'		=> 'openid',
    #'DBWrite'        => array('192.168.2.4', 'openid', 'nmps', 'nmps@!2008mysql', 0),
    #'DBRead'         => array('192.168.2.4', 'openid', 'nmps', 'nmps@!2008mysql', 0),
 
	'UPLOAD_TYPE'	=> 'web', # gearman or web

	'DATARETURN'	=>	array(
							'type'		=>	'JSON',	# JSON XML
							'retcode'	=>	1,
							'xmlroot'	=>	'nmg',	# xml root dom
							'format'	=>	array(
												'retcode'	=> 'retcode',
												'msg'		=> 'msg',
												'data'		=> 'data'
											),
							'callback'	=>	'callback'	# iframe callback function name
						)

);


$sphinxConfig = array(
	'ip'		=>	'192.168.110.34',
	'port'		=>	9312,
	'timeout'	=>	3,
	'datasize'	=>	1000,
);


$coreSeekConfig = array(
	'sh'			=>	BACKEND_PATH.'/coreseek/coreseek.sh',
	'source'		=>	BACKEND_PATH.'/coreseek/csft_mysql.conf',
	'unigram_txt'	=>	BACKEND_PATH.'/coreseek/unigram.txt',
	'thesaurus_txt'	=>	BACKEND_PATH.'/coreseek/thesaurus.txt',
	'db'			=>	'coreseek',
	'table'			=>	'unigram'
);


# login,register class use
$siteMemberTable = array(
			'db'		=>	'testitrial_bak',
			'main'		=>	'member',
			'nmg'		=>	'',
			'facebook'	=>	'login_facebook',
			'weibo'		=>	'',
			'openid'	=>	'',
			'imore'		=>	'member',
);


# login,register class use
$siteRetCodeInfo = array(
			'000'	=>	'login success',
			#nmg login
			'001'	=>	'account or password is empty',
			'002'	=>	'account not exists',
			'003'	=>	'password not match',
			#facebook login
			'011'	=>	'facebook login fail',
			'012'	=>	'user not agree',
			#weibo login
			'021'	=>	'weibo login fail',
			#openid login
			'031'	=>	'openid login fail',

			'100'	=>	'reg success',
			#nmg reg
			'101'	=>	'email or username is exists',
			'102'	=>	'email or username or password is empty',
			'103'	=>	'add to table fail',
			#facebook reg
			'111'	=>	'facebook reg fail',
			'112'	=>	'username is exists',
			#weibo reg
			'121'	=>	'weibo reg fail',
			'122'	=>	'username or email is exists',
			#openid reg
			'131'	=>	'openid reg fail',
			'132'	=>	'username is exists',			
			
			#ucenter reg
			'201'	=>	'member not exists',
			'202'	=>	'insert table fail',
			#error status
			'999'	=>	'member is ban'
);
?>
